package com.anpy.album.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;

import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;

@FeignClient(name = "oss", url = "http://192.168.2.104:88")
public interface OssFeign {

    @RequestMapping(
            value = "/thirdparty/oss/removePhoto",
            method = RequestMethod.POST,
            consumes = APPLICATION_JSON_VALUE,
            produces = APPLICATION_JSON_VALUE
    )
    boolean removePhoto(@RequestParam("list") ArrayList<String> list);

}